package com.ea.admin.pojo.param.account;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class EditAdminParam {
    @ApiModelProperty(value = "管理员的id-主键", required = true)
    @NotBlank(message = "管理员的id不能为空")
    private String accountId;

    @ApiModelProperty(value = "用户名", required = true)
    @NotBlank(message = "用户名不能为空")
    @Size(max = 20, message = "用户名不能超过20个字符")
    private String username;

    @ApiModelProperty(value = "真实姓名", required = true)
    @NotBlank(message = "真实姓名不能为空")
    @Size(max = 20, message = "真实姓名不能超过20个字符")
    private String name;

    @ApiModelProperty(value = "手机号码", required = true)
    @NotBlank(message = "手机号码不能为空")
    @Size(max = 11, message = "手机号码不能超过11个字符")
    private String phoneNumber;

    @ApiModelProperty(value = "管理员角色的id", required = true)
    @NotBlank(message = "管理员角色的id不能为空")
    private String adminRoleId;
}
